package com.ruoyi.qsng.service.impl;

import java.util.List;

import com.ruoyi.qsng.domain.KClearinghouseCommentReply;
import com.ruoyi.qsng.mapper.KClearinghouseCommentReplyMapper;
import com.ruoyi.qsng.service.IKClearinghouseCommentReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 回复Service业务层处理
 * 
 * @author gk
 * @date 2023-06-15
 */
@Service
public class KClearinghouseCommentReplyServiceImpl implements IKClearinghouseCommentReplyService
{
    @Autowired
    private KClearinghouseCommentReplyMapper kClearinghouseCommentReplyMapper;

    /**
     * 查询回复
     * 
     * @param id 回复主键
     * @return 回复
     */
    @Override
    public KClearinghouseCommentReply selectKClearinghouseCommentReplyById(Long id)
    {
        return kClearinghouseCommentReplyMapper.selectKClearinghouseCommentReplyById(id);
    }

    /**
     * 查询回复列表
     * 
     * @param kClearinghouseCommentReply 回复
     * @return 回复
     */
    @Override
    public List<KClearinghouseCommentReply> selectKClearinghouseCommentReplyList(KClearinghouseCommentReply kClearinghouseCommentReply)
    {
        return kClearinghouseCommentReplyMapper.selectKClearinghouseCommentReplyList(kClearinghouseCommentReply);
    }

    /**
     * 新增回复
     * 
     * @param kClearinghouseCommentReply 回复
     * @return 结果
     */
    @Override
    public int insertKClearinghouseCommentReply(KClearinghouseCommentReply kClearinghouseCommentReply)
    {
        return kClearinghouseCommentReplyMapper.insertKClearinghouseCommentReply(kClearinghouseCommentReply);
    }

    /**
     * 修改回复
     * 
     * @param kClearinghouseCommentReply 回复
     * @return 结果
     */
    @Override
    public int updateKClearinghouseCommentReply(KClearinghouseCommentReply kClearinghouseCommentReply)
    {
        return kClearinghouseCommentReplyMapper.updateKClearinghouseCommentReply(kClearinghouseCommentReply);
    }

    /**
     * 批量删除回复
     * 
     * @param ids 需要删除的回复主键
     * @return 结果
     */
    @Override
    public int deleteKClearinghouseCommentReplyByIds(Long[] ids)
    {
        return kClearinghouseCommentReplyMapper.deleteKClearinghouseCommentReplyByIds(ids);
    }

    /**
     * 删除回复信息
     * 
     * @param id 回复主键
     * @return 结果
     */
    @Override
    public int deleteKClearinghouseCommentReplyById(Long id)
    {
        return kClearinghouseCommentReplyMapper.deleteKClearinghouseCommentReplyById(id);
    }
}
